package com.rural.bus.driver.utils;

import com.rural.bus.driver.MyApplication;

import android.widget.Toast;

public class ToastUtil {

	public static void showToast(int id) {
		Toast.makeText(
				MyApplication.instance().getApplicationContext(),
				MyApplication.instance().getApplicationContext().getResources()
						.getString(id), Toast.LENGTH_SHORT).show();
	}
	
	public static void showToast(String msg){
		if(CommonTools.isEmpty(msg)){
			return;
		}
		Toast.makeText(
				MyApplication.instance().getApplicationContext(),
				msg, Toast.LENGTH_SHORT).show();
	}
}
